Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericCollectionAssertions<TCollection,T,TAssertions> Class / Contain Method
In This Topic
    Contain Method (GenericCollectionAssertions<TCollection,T,TAssertions>)
    In This Topic
    Asserts that the collection contains the specified item.
    Overload List
    OverloadDescription
    Asserts that the collection contains the specified item.  
    Asserts that the collection contains at least one item that matches the predicate.  
    Expects the current collection to contain the specified elements in any order. Elements are compared using their System.Object.Equals(System.Object) implementation.  
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also